3.8 \(\int \tan ^8(c+d x) \, dx\)

Optimal. Leaf size=58 \[ \frac{\tan ^7(c+d x)}{7 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan (c+d x)}{d}+x \]

[Out]

x - Tan[c + d*x]/d + Tan[c + d*x]^3/(3*d) - Tan[c + d*x]^5/(5*d) + Tan[c + d*x]^7/(7*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0299271, antiderivative size = 58, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 8} \[ \frac{\tan ^7(c+d x)}{7 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan (c+d x)}{d}+x \]

Antiderivative was successfully verified.

[In]

Int[Tan[c + d*x]^8,x]

[Out]

x - Tan[c + d*x]/d + Tan[c + d*x]^3/(3*d) - Tan[c + d*x]^5/(5*d) + Tan[c + d*x]^7/(7*d)

Rule 3473

Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(b*Tan[c + d*x])^(n - 1))/(d*(n - 1)), x] - Dis
t[b^2, Int[(b*Tan[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \tan ^8(c+d x) \, dx &=\frac{\tan ^7(c+d x)}{7 d}-\int \tan ^6(c+d x) \, dx\\ &=-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^7(c+d x)}{7 d}+\int \tan ^4(c+d x) \, dx\\ &=\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^7(c+d x)}{7 d}-\int \tan ^2(c+d x) \, dx\\ &=-\frac{\tan (c+d x)}{d}+\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^7(c+d x)}{7 d}+\int 1 \, dx\\ &=x-\frac{\tan (c+d x)}{d}+\frac{\tan ^3(c+d x)}{3 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^7(c+d x)}{7 d}\\ \end{align*}

Mathematica [A]  time = 0.0112421, size = 68, normalized size = 1.17 \[ \frac{\tan ^7(c+d x)}{7 d}-\frac{\tan ^5(c+d x)}{5 d}+\frac{\tan ^3(c+d x)}{3 d}+\frac{\tan ^{-1}(\tan (c+d x))}{d}-\frac{\tan (c+d x)}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Tan[c + d*x]^8,x]

[Out]

ArcTan[Tan[c + d*x]]/d - Tan[c + d*x]/d + Tan[c + d*x]^3/(3*d) - Tan[c + d*x]^5/(5*d) + Tan[c + d*x]^7/(7*d)

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 61, normalized size = 1.1 \begin{align*}{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{7}}{7\,d}}-{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{5}}{5\,d}}+{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{3}}{3\,d}}-{\frac{\tan \left ( dx+c \right ) }{d}}+{\frac{dx+c}{d}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(d*x+c)^8,x)

[Out]

1/7*tan(d*x+c)^7/d-1/5*tan(d*x+c)^5/d+1/3*tan(d*x+c)^3/d-tan(d*x+c)/d+1/d*(d*x+c)

________________________________________________________________________________________

Maxima [A]  time = 1.40812, size = 69, normalized size = 1.19 \begin{align*} \frac{15 \, \tan \left (d x + c\right )^{7} - 21 \, \tan \left (d x + c\right )^{5} + 35 \, \tan \left (d x + c\right )^{3} + 105 \, d x + 105 \, c - 105 \, \tan \left (d x + c\right )}{105 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^8,x, algorithm="maxima")

[Out]

1/105*(15*tan(d*x + c)^7 - 21*tan(d*x + c)^5 + 35*tan(d*x + c)^3 + 105*d*x + 105*c - 105*tan(d*x + c))/d

________________________________________________________________________________________

Fricas [A]  time = 1.50851, size = 132, normalized size = 2.28 \begin{align*} \frac{15 \, \tan \left (d x + c\right )^{7} - 21 \, \tan \left (d x + c\right )^{5} + 35 \, \tan \left (d x + c\right )^{3} + 105 \, d x - 105 \, \tan \left (d x + c\right )}{105 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^8,x, algorithm="fricas")

[Out]

1/105*(15*tan(d*x + c)^7 - 21*tan(d*x + c)^5 + 35*tan(d*x + c)^3 + 105*d*x - 105*tan(d*x + c))/d

________________________________________________________________________________________

Sympy [A]  time = 1.21523, size = 51, normalized size = 0.88 \begin{align*} \begin{cases} x + \frac{\tan ^{7}{\left (c + d x \right )}}{7 d} - \frac{\tan ^{5}{\left (c + d x \right )}}{5 d} + \frac{\tan ^{3}{\left (c + d x \right )}}{3 d} - \frac{\tan{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \tan ^{8}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)**8,x)

[Out]

Piecewise((x + tan(c + d*x)**7/(7*d) - tan(c + d*x)**5/(5*d) + tan(c + d*x)**3/(3*d) - tan(c + d*x)/d, Ne(d, 0
)), (x*tan(c)**8, True))

________________________________________________________________________________________

Giac [B]  time = 9.25495, size = 1945, normalized size = 33.53 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(d*x+c)^8,x, algorithm="giac")

[Out]

1/420*(105*pi + 420*d*x*tan(d*x)^7*tan(c)^7 - 105*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*tan(c)^2 - 2*tan(d*x
) - 2*tan(c))*tan(d*x)^7*tan(c)^7 - 105*pi*tan(d*x)^7*tan(c)^7 + 210*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) +
tan(c)))*tan(d*x)^7*tan(c)^7 + 210*arctan((tan(d*x) + tan(c))/(tan(d*x)*tan(c) - 1))*tan(d*x)^7*tan(c)^7 - 294
0*d*x*tan(d*x)^6*tan(c)^6 + 735*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*tan(c)^2 - 2*tan(d*x) - 2*tan(c))*tan(
d*x)^6*tan(c)^6 + 735*pi*tan(d*x)^6*tan(c)^6 - 1470*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) + tan(c)))*tan(d*x)
^6*tan(c)^6 - 1470*arctan((tan(d*x) + tan(c))/(tan(d*x)*tan(c) - 1))*tan(d*x)^6*tan(c)^6 + 420*tan(d*x)^7*tan(
c)^6 + 420*tan(d*x)^6*tan(c)^7 + 8820*d*x*tan(d*x)^5*tan(c)^5 - 2205*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*t
an(c)^2 - 2*tan(d*x) - 2*tan(c))*tan(d*x)^5*tan(c)^5 - 140*tan(d*x)^7*tan(c)^4 - 2205*pi*tan(d*x)^5*tan(c)^5 +
 4410*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) + tan(c)))*tan(d*x)^5*tan(c)^5 + 4410*arctan((tan(d*x) + tan(c))/
(tan(d*x)*tan(c) - 1))*tan(d*x)^5*tan(c)^5 - 2940*tan(d*x)^6*tan(c)^5 - 2940*tan(d*x)^5*tan(c)^6 - 140*tan(d*x
)^4*tan(c)^7 - 14700*d*x*tan(d*x)^4*tan(c)^4 + 3675*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*tan(c)^2 - 2*tan(d
*x) - 2*tan(c))*tan(d*x)^4*tan(c)^4 + 84*tan(d*x)^7*tan(c)^2 + 980*tan(d*x)^6*tan(c)^3 + 3675*pi*tan(d*x)^4*ta
n(c)^4 - 7350*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) + tan(c)))*tan(d*x)^4*tan(c)^4 - 7350*arctan((tan(d*x) +
tan(c))/(tan(d*x)*tan(c) - 1))*tan(d*x)^4*tan(c)^4 + 8820*tan(d*x)^5*tan(c)^4 + 8820*tan(d*x)^4*tan(c)^5 + 980
*tan(d*x)^3*tan(c)^6 + 84*tan(d*x)^2*tan(c)^7 + 14700*d*x*tan(d*x)^3*tan(c)^3 - 3675*pi*sgn(2*tan(d*x)^2*tan(c
) + 2*tan(d*x)*tan(c)^2 - 2*tan(d*x) - 2*tan(c))*tan(d*x)^3*tan(c)^3 - 60*tan(d*x)^7 - 588*tan(d*x)^6*tan(c) -
 2940*tan(d*x)^5*tan(c)^2 - 3675*pi*tan(d*x)^3*tan(c)^3 + 7350*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) + tan(c)
))*tan(d*x)^3*tan(c)^3 + 7350*arctan((tan(d*x) + tan(c))/(tan(d*x)*tan(c) - 1))*tan(d*x)^3*tan(c)^3 - 14700*ta
n(d*x)^4*tan(c)^3 - 14700*tan(d*x)^3*tan(c)^4 - 2940*tan(d*x)^2*tan(c)^5 - 588*tan(d*x)*tan(c)^6 - 60*tan(c)^7
 - 8820*d*x*tan(d*x)^2*tan(c)^2 + 2205*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*tan(c)^2 - 2*tan(d*x) - 2*tan(c
))*tan(d*x)^2*tan(c)^2 + 84*tan(d*x)^5 + 980*tan(d*x)^4*tan(c) + 2205*pi*tan(d*x)^2*tan(c)^2 - 4410*arctan((ta
n(d*x)*tan(c) - 1)/(tan(d*x) + tan(c)))*tan(d*x)^2*tan(c)^2 - 4410*arctan((tan(d*x) + tan(c))/(tan(d*x)*tan(c)
 - 1))*tan(d*x)^2*tan(c)^2 + 8820*tan(d*x)^3*tan(c)^2 + 8820*tan(d*x)^2*tan(c)^3 + 980*tan(d*x)*tan(c)^4 + 84*
tan(c)^5 + 2940*d*x*tan(d*x)*tan(c) - 735*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)*tan(c)^2 - 2*tan(d*x) - 2*ta
n(c))*tan(d*x)*tan(c) - 140*tan(d*x)^3 - 735*pi*tan(d*x)*tan(c) + 1470*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x)
+ tan(c)))*tan(d*x)*tan(c) + 1470*arctan((tan(d*x) + tan(c))/(tan(d*x)*tan(c) - 1))*tan(d*x)*tan(c) - 2940*tan
(d*x)^2*tan(c) - 2940*tan(d*x)*tan(c)^2 - 140*tan(c)^3 - 420*d*x + 105*pi*sgn(2*tan(d*x)^2*tan(c) + 2*tan(d*x)
*tan(c)^2 - 2*tan(d*x) - 2*tan(c)) - 210*arctan((tan(d*x)*tan(c) - 1)/(tan(d*x) + tan(c))) - 210*arctan((tan(d
*x) + tan(c))/(tan(d*x)*tan(c) - 1)) + 420*tan(d*x) + 420*tan(c))/(d*tan(d*x)^7*tan(c)^7 - 7*d*tan(d*x)^6*tan(
c)^6 + 21*d*tan(d*x)^5*tan(c)^5 - 35*d*tan(d*x)^4*tan(c)^4 + 35*d*tan(d*x)^3*tan(c)^3 - 21*d*tan(d*x)^2*tan(c)
^2 + 7*d*tan(d*x)*tan(c) - d)